import React from 'react';
import ReactDOM from 'react-dom';
import { Router, hashHistory } from 'react-router';
import { Provider } from 'react-redux';
import registerServiceWorker from './registerServiceWorker';

//router
import routes from  './routes';

// store
import configureStore from './store';
const store = configureStore()

//html dom
const element = document.getElementById('root');

ReactDOM.render(
    <Provider store={store}>
        <Router history={hashHistory} routes={routes}/>
    </Provider>,
    element
);
registerServiceWorker();
